<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      libmusicbrainz-2.1.5
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;42.&nbsp;Multimedia Libraries and Drivers
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="libmpeg2.html" title=
          "libmpeg2-0.5.1">Prev</a>
          <p>
            libmpeg2-0.5.1
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="libmusicbrainz5.html" title=
          "libmusicbrainz-5.1.0">Next</a>
          <p>
            libmusicbrainz-5.1.0
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="libdriv.html" title=
          "Chapter&nbsp;42.&nbsp;Multimedia Libraries and Drivers">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="libmusicbrainz" name="libmusicbrainz"></a>libmusicbrainz-2.1.5
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to libmusicbrainz
        </h2>
        <p>
          The <span class="application">libmusicbrainz</span> package
          contains a library which allows you to access the data held on the
          MusicBrainz server. This is useful for adding MusicBrainz lookup
          capabilities to other applications.
        </p>
        <p>
          MusicBrainz is a community music metadatabase that attempts to
          create a comprehensive music information site. You can use the
          MusicBrainz data either by browsing the web site, or you can access
          the data from a client program &mdash; for example, a CD player
          program can use MusicBrainz to identify CDs and provide information
          about the CD, about the artist or other related information.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "http://ftp.musicbrainz.org/pub/musicbrainz/historical/libmusicbrainz-2.1.5.tar.gz">
                http://ftp.musicbrainz.org/pub/musicbrainz/historical/libmusicbrainz-2.1.5.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download (FTP): <a class="ulink" href=
                "ftp://ftp.musicbrainz.org/pub/musicbrainz/historical/libmusicbrainz-2.1.5.tar.gz">
                ftp://ftp.musicbrainz.org/pub/musicbrainz/historical/libmusicbrainz-2.1.5.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: d5e19bb77edd6ea798ce206bd05ccc5f
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 524 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 12 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.4 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Additional Downloads
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Required patch: <a class="ulink" href=
                "http://www.linuxfromscratch.org/patches/blfs/9.1/libmusicbrainz-2.1.5-missing-includes-1.patch">
                http://www.linuxfromscratch.org/patches/blfs/9.1/libmusicbrainz-2.1.5-missing-includes-1.patch</a>
              </p>
            </li>
          </ul>
        </div>
        <h3>
          libmusicbrainz Dependencies
        </h3>
        <h4>
          Optional to Build the Python Bindings
        </h4>
        <p class="optional">
          <a class="xref" href="../general/python2.html" title=
          "Python-2.7.17">Python-2.7.17</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/libmusicbrainz">http://wiki.linuxfromscratch.org/blfs/wiki/libmusicbrainz</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of libmusicbrainz
        </h2>
        <p>
          Install <span class="application">libmusicbrainz</span> by running
          the following commands:
        </p>
        <pre class="userinput">
<kbd class=
"command">patch -Np1 -i ../libmusicbrainz-2.1.5-missing-includes-1.patch &amp;&amp;

CXXFLAGS=-std=c++98 \
./configure --prefix=/usr --disable-static &amp;&amp;
make</kbd>
</pre>
        <p>
          If <span class="application">Python</span> is installed, build the
          bindings with the following commands:
        </p>
        <pre class="userinput">
<kbd class="command">(cd python &amp;&amp; python setup.py build)</kbd>
</pre>
        <p>
          This package does not come with a stand-alone test suite (to test
          you must have <span class="application">Python</span> installed and
          perform the test after the package is installed).
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install &amp;&amp;
install -v -m644 -D docs/mb_howto.txt \
    /usr/share/doc/libmusicbrainz-2.1.5/mb_howto.txt</kbd>
</pre>
        <p>
          To test the Python bindings, issue the following: <span class=
          "command"><strong>(cd python &amp;&amp; python setup.py
          test)</strong></span>.
        </p>
        <p>
          If you built the Python bindings, issue the following commands as
          the <code class="systemitem">root</code> user to install them:
        </p>
        <pre class="root">
<kbd class="command">(cd python &amp;&amp; python setup.py install)</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>--disable-static</code></em>: This
          switch prevents installation of static versions of the libraries.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">None</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Library:</strong>
              <span class="segbody">libmusicbrainz.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/usr/include/musicbrainz and
              /usr/share/doc/libmusicbrainz-2.1.5</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="libmusicbrainz-lib" name=
                    "libmusicbrainz-lib"></a><span class="term"><code class=
                    "filename">libmusicbrainz.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains API functions to access the MusicBrainz
                    database, both for looking up data and also for
                    submitting new data.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-18 14:50:03 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="libmpeg2.html" title=
          "libmpeg2-0.5.1">Prev</a>
          <p>
            libmpeg2-0.5.1
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="libmusicbrainz5.html" title=
          "libmusicbrainz-5.1.0">Next</a>
          <p>
            libmusicbrainz-5.1.0
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="libdriv.html" title=
          "Chapter&nbsp;42.&nbsp;Multimedia Libraries and Drivers">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
